﻿CREATE PROCEDURE [dbo].[WorkflowTriggerExists]
(@ComponentID UniqueIdentifier, 
@WorkflowID UniqueIdentifier,
@Exists bit output) as 
begin
	if exists (select * from WorkflowTrigger where ComponentID=@ComponentID and WorkflowID=@WorkflowID)
		set @Exists=1;
	else 
		set @Exists=0;
end